<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/MainPage.Master" CodeBehind="Discussions.aspx.vb" Inherits="PetsCare.Discussions" 
    title="Discussion" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <style type="text/css">
        .style14
        {
            width: 100%;
            height: 380px;
        }
        .style17
        {
            height: 40px;
        }
        .style19
        {
        }
        .style21
        {
            width: 73%;
        }
        .style22
        {
        }
        .style23
        {
        }
        .style24
        {
            width: 4px;
        }
        .style25
        {
            border: 1px solid #2F4F4F;
            color: white;
            background-color: #2E4d7B;
            font-family: Verdana;
            font-size: 10px;
            font-weight: bold;
            padding: 5px;
            margin-top: 5px;
            cursor: pointer;
            width: 812px;
            height: 18px;
        }
        .style26
        {
            width: 788px;
            font-size: 20px;
        }
        .style28
        {
            width: 60px;
            height: 47px;
        }
        .style32
        {
            height: 21px;
            width: 664px;
        }
        .style34
        {
            height: 21px;
            font-family: Verdana;
            font-size: 10px;
        }
        .style40
        {
            height: 21px;
            width: 60px;
            font-family: Verdana;
            font-size: 10px;
        }
        .style41
        {
            height: 47px;
        }
        .style46
        {
            height: 47px;
            width: 268435520px;
        }
        .style47
        {
            width: 268435520px;
        }
    </style>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


    <div>
        <table class="style14">
            <tr>
                <td class="style26" valign="top">
                    <asp:Panel ID="Panel2" runat="server" CssClass="newFont" Height="152px" 
                        Width="489px">
                        <br />
                        <asp:Image ID="Image2" runat="server" Height="92px" Width="84px" />
                        <asp:Label ID="UserName_LBL" runat="server" style="font-size: 13px" 
                            Visible="False"></asp:Label>
                        <br />
                        <asp:Label ID="lbl_petname0" runat="server" Text="Discussion Forum for  " 
                            style="font-size: 13px"></asp:Label>
                        <br />
                        <asp:Label ID="lbl_petname" runat="server" Text="Label" style="font-size: 13px"></asp:Label>
                    </asp:Panel>
                </td>
                <td class="style17">
                    <asp:Panel ID="Panel3" runat="server" Height="192px" Width="352px" 
                        BorderStyle="Outset">
                        <table class="style21">
                            <tr>
                                <td class="style25" colspan="2">
                                    Start New discussion on this pet</td>
                            </tr>
                            <tr>
                                <td class="style22">
                                    <asp:Label ID="Label2" runat="server" 
                                        style="font-family: Verdana; font-size: 15px" Text="Title"></asp:Label>
                                </td>
                                <td class="style24">
                                    <asp:TextBox ID="tb_title" runat="server" Height="35px" 
                                        style="font-family: Verdana; font-size: 13px" TextMode="MultiLine" 
                                        Width="257px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style22">
                                    <asp:Label ID="Label3" runat="server" 
                                        style="font-family: Verdana; font-size: 15px" Text="Description"></asp:Label>
                                </td>
                                <td class="style24">
                                    <asp:TextBox ID="tb_description" runat="server" Height="71px" 
                                        style="font-family: Verdana; font-size: 13px" TextMode="MultiLine" 
                                        Width="257px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style22">
                                    &nbsp;</td>
                                <td class="style23">
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:Button ID="btn_cancel" runat="server" CssClass="DiscussionBody" 
                                        Text="Cancel" Width="83px" />
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:Button ID="btn_post" runat="server" CssClass="DiscussionBody" Text="Post" 
                                        Width="83px" />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td class="style19" valign="top" colspan="2">
                                <asp:Label ID="Label1" runat="server" Text="gg"></asp:Label>
                    <br />
                    All Discussion<br />
                    <br />
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
      <ItemTemplate>

            <table style="width: 968px">
                  <tr class="DiscussionHeaderNew">
                            <td class="style40"><asp:HyperLink ID="link_touserprofile" 
                                    runat="server"><%#Eval("UserName")%></asp:HyperLink>
                            </td>
                            <td class="style32"><%#Eval("Title")%></td>
                            <td class="style34" align="center" colspan="2"><%#temp%><%#Eval("Dateofpost")%></td>
                   </tr>
                   
                   <tr>
                         
                            
                            <td class="DiscussionBody" valign="top"> 
                                <asp:Image ID="Image3" runat="server" 
                                    Height="44px" Width="41px"  ImageUrl=<%#Eval("UserImage") %> />  </td>
                            <td class="DiscussionBodyNew" colspan="2"><%#Eval("Description")%> 
                                </td>
                            <td class="DiscussionBody" align="center">
                            <asp:HyperLink ID="HyperLink1" runat="server" 
                                    NavigateUrl=<%# "DiscussionDetails.aspx?ID=" & eval("ID") %> 
                                    style="font-family: Verdana; font-size: 13px"> Details </asp:HyperLink> </td>
                  </tr>
                   
                   <tr>
                         
                            
                            <td class="DiscussionFooterNew" valign="top"> 
                            </td>
                            <td colspan="2" class="DiscussionFooterNew"> 
                                </td>
                            <td align="center" class="style47">
                            </td>
                  </tr>
             </table>
      </ItemTemplate>
                  
</asp:Repeater>
                   
                    <br />
                    <br />
                    <br />
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:PetsConnectionString %>" 
                        ProviderName="<%$ ConnectionStrings:PetsConnectionString.ProviderName %>" 
                        
                        SelectCommand="SELECT * FROM [Discussion_tbl] WHERE ([petID] = ?)">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="petID" QueryStringField="ID" Type="Int32" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                 </td>
            </tr>
            </table>
    </div>


    </asp:Content>
